package obj;

import game.Tri;
import game.Vertex;

import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Deque;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class Obj {

	public Map<Integer, Vertex> indexVertexMapping = new HashMap<Integer, Vertex>();
	
	public List<Tri> tris = new ArrayList<Tri>();
	
	public void computeAdjacency() {
		System.out.println("computeAdjacency " + this);
		
		Tri tri = tris.get(0);
		
		Deque<Tri> deque = new ArrayDeque<Tri>();
		deque.add(tri);
		
		while (0 < deque.size()) {
			Tri tempTri = deque.removeFirst();
			tempTri.computeAdjacency(deque);
		}
	}

	public void buildBSP() {

		throw new RuntimeException("Not implemented yet!");
		
	}

}
